package MYARRAYLIST;

public class text1 {
    public static void main(String[] args){
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.disPlay();
        myArrayList.add(2,222);
        System.out.println();
        myArrayList.disPlay();
        System.out.println();
       boolean ret= myArrayList.contain(222);
       System.out.println(ret);
        int ret1=myArrayList.indexOf(222);
        System.out.println(ret1);
        int ret2= myArrayList.get(2);
        System.out.println(ret2);
        myArrayList.set(2,3333);
        myArrayList.disPlay();
        myArrayList.remove(2);
        System.out.println();
        myArrayList.disPlay();

    }
}
